<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .box {
      width: 200px;
      height: 100px;
      background-color: orange;
      /* position:relative; */

      /* animation-name: myani;
      animation-timing-function: ease-in;
      animation-duration: 1s; */
      animation: mymove 5s ease-in-out;
    }

    @keyframes mymove {
      0% {
        transform: translate(0,0);
      }

      25% {
        transform: translate(100px,0);
      }

      50% {
        transform: translate(100px,100px);
      }

      75% {
        transform: translate(0,100px);
      }

      100% {
        transform: translate(0,0);
      }
    }
  </style>
</head>

<body>
  <div class="box"></div>
</body>

</html>